<template>
  <div>
    <el-dialog title="工单配置" :visible="order" :before-close="close">
      <el-form ref="form">
        <el-form-item label="补货警戒线：">
          <!-- <el-input v-model="form.name" autocomplete="off"></el-input> -->
          <el-input-number v-model="num" controls-position="right" :min="1" style="width:80%" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="close">取 消</el-button>
        <el-button type="primary" @click="submit">确认</el-button>
      </div>
    </el-dialog>

  </div>
</template>

<script>
export default {
  name: 'HrsaasConfig',
  props: {
    order: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      num: 1
    }
  },

  mounted() {

  },

  methods: {
    close() {
      this.$emit('update:order', false)
    },
    submit() {
      // this.$message.success('新增成功')
      this.$emit('update:order', false)
      this.$refs.form.reserFileds()
      this.$refs.form = {}
      this.$parents.getList()
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
